const path = require("path");

module.exports = (args, config) => ({
    title: "图片处理程序",
    webpackConfig: {
        resolve: {
            alias: {
                "@/components": path.resolve("./view/components"),
                "@/hocks": path.resolve("./view/hocks"),
                "@/store": path.resolve("./view/store"),
                "@/plugin": path.resolve("./view/plugin"),
                "@/page": path.resolve("./view/page"),
                "@/router": path.resolve("./view/router"),
            },
        },
    },
    electronConfig: {
        mainFile: "./server/main.js",
        icon: path.resolve("./assets/images/logo.png"),
    },
});
